package com.wolf.gulimall.product.dao;

import com.wolf.gulimall.product.entity.SpuInfoEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * spu信息
 *
 * @author wolfmoon
 * @email wolfmoon@gmail.com
 * @date 2022-11-15 16:09:03
 */
@Mapper
public interface SpuInfoDao extends BaseMapper<SpuInfoEntity> {

    /**
     * 修改商品状态
     *
     * @param spuId  商品spuId
     * @param status 状态 0-> 新建,1-> 上架 , 2-> 下架
     */
    void updateSpuStatus(@Param("spuId") Long spuId, @Param("status") Integer status);
}
